package cn.iocoder.yudao.module.written.exam.enums.llm;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 大模型文件状态枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum LlmFileStatusEnum {

    NORMAL(0, "正常"),
    DELETED(1, "已删除");

    private final Integer status;
    private final String name;

    /**
     * 判断是否为正常状态
     */
    public static boolean isNormal(Integer status) {
        return NORMAL.getStatus().equals(status);
    }

    /**
     * 判断是否为删除状态
     */
    public static boolean isDeleted(Integer status) {
        return DELETED.getStatus().equals(status);
    }

} 